package com.gitee.jmliu1983.finacehelper.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gitee.jmliu1983.finacehelper.mapper.TransactionsUsdRmbMapper;
import com.gitee.jmliu1983.finacehelper.domain.TransactionsUsdRmb;
import com.gitee.jmliu1983.finacehelper.service.ITransactionsUsdRmbService;

/**
 * 美元理财Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class TransactionsUsdRmbServiceImpl implements ITransactionsUsdRmbService 
{
    @Autowired
    private TransactionsUsdRmbMapper transactionsUsdRmbMapper;

    /**
     * 查询美元理财
     * 
     * @param transactionId 美元理财主键
     * @return 美元理财
     */
    @Override
    public TransactionsUsdRmb selectTransactionsUsdRmbByTransactionId(Long transactionId)
    {
        return transactionsUsdRmbMapper.selectTransactionsUsdRmbByTransactionId(transactionId);
    }

    /**
     * 查询美元理财列表
     * 
     * @param transactionsUsdRmb 美元理财
     * @return 美元理财
     */
    @Override
    public List<TransactionsUsdRmb> selectTransactionsUsdRmbList(TransactionsUsdRmb transactionsUsdRmb)
    {
        return transactionsUsdRmbMapper.selectTransactionsUsdRmbList(transactionsUsdRmb);
    }

    /**
     * 新增美元理财
     * 
     * @param transactionsUsdRmb 美元理财
     * @return 结果
     */
    @Override
    public int insertTransactionsUsdRmb(TransactionsUsdRmb transactionsUsdRmb)
    {
        return transactionsUsdRmbMapper.insertTransactionsUsdRmb(transactionsUsdRmb);
    }

    /**
     * 修改美元理财
     * 
     * @param transactionsUsdRmb 美元理财
     * @return 结果
     */
    @Override
    public int updateTransactionsUsdRmb(TransactionsUsdRmb transactionsUsdRmb)
    {
        return transactionsUsdRmbMapper.updateTransactionsUsdRmb(transactionsUsdRmb);
    }

    /**
     * 批量删除美元理财
     * 
     * @param transactionIds 需要删除的美元理财主键
     * @return 结果
     */
    @Override
    public int deleteTransactionsUsdRmbByTransactionIds(Long[] transactionIds)
    {
        return transactionsUsdRmbMapper.deleteTransactionsUsdRmbByTransactionIds(transactionIds);
    }

    /**
     * 删除美元理财信息
     * 
     * @param transactionId 美元理财主键
     * @return 结果
     */
    @Override
    public int deleteTransactionsUsdRmbByTransactionId(Long transactionId)
    {
        return transactionsUsdRmbMapper.deleteTransactionsUsdRmbByTransactionId(transactionId);
    }
}
